<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS 复杂的属性选择器</title>
    <style media="screen">
         .c1{
             color: red;
             width: 200px;
             padding: 10px;
         }
         .c2{
             text-decoration: underline;
         }
         .c3{
            border: 1px dashed black;
         }
         /* 有效*/
         [class]{
             font-size: 48px;
         }
         /* 有效*/
         [href='baidu.com']{
             font-size: 56px;
         }
         /* 有效*/
         [class~='c3']{
             text-indent: 30px;
         }

         /* 有效*/
         [href^='baidu']{
             font-size: 56px;
             color: yellow;
         }

         /* 有效*/
         [href*='du']{
            border: 1px solid red;
         }
    </style>
</head>
<body>
<section>
   <div class="c1 c2 c3">11111111111</div>
   <div class="c1 c2 ">22222</div>
    <a href="baidu.com">百度</a>
</section>
</body>
</html>
